﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using GrainManage.Entities;
using GrainManage.Entities.District;
using GrainManage.Proxy.Util;
using System.Reflection;

namespace GrainManage.Proxy
{
    public sealed class DistrictProxy : GrainManage.Interface.IDistrict
    {

        //************************************************POST************************************************

        public OutputGetByID GetByID(InputGetByID input)
        {
            var result = WebUtil.ExecuteByPost<OutputGetByID>(UrlUtil.Generate(MethodBase.GetCurrentMethod()), input);
            return result;
        }

        public OutputGetByName GetByName(InputGetByName input)
        {
            var result = WebUtil.ExecuteByPost<OutputGetByName>(UrlUtil.Generate(MethodBase.GetCurrentMethod()), input);
            return result;
        }

        public OutputGetFatherName GetFatherName(InputGetFatherName input)
        {
            var result = WebUtil.ExecuteByPost<OutputGetFatherName>(UrlUtil.Generate(MethodBase.GetCurrentMethod()), input);
            return result;
        }

        public OutputGetChildName GetChildName(InputGetChildName input)
        {
            var result = WebUtil.ExecuteByPost<OutputGetChildName>(UrlUtil.Generate(MethodBase.GetCurrentMethod()), input);
            return result;
        }

        public OutputGetUpwardDistrict GetUpwardDistrict(InputGetUpwardDistrict input)
        {
            var result = WebUtil.ExecuteByPost<OutputGetUpwardDistrict>(UrlUtil.Generate(MethodBase.GetCurrentMethod()), input);
            return result;
        }

        public OutputGetDownwardDistrict GetDownwardDistrict(InputGetDownwardDistrict input)
        {
            var result = WebUtil.ExecuteByPost<OutputGetDownwardDistrict>(UrlUtil.Generate(MethodBase.GetCurrentMethod()), input);
            return result;
        }
    }
}
